#include "key_manager.h"

OPEN_JLIB_NS


void KeyManager::dispatchDown (KeyEvent::Key key, u16 modifiers) {
  if (_status.tests(key))
    return;
  reorder();
  dispatch({key, modifiers, KeyEvent::Act_Down});
}

void KeyManager::dispatchRepeat (KeyEvent::Key key, u16 modifiers) {
  if (_status.tstz(key))
    return;
  reorder();
  dispatch({key, modifiers, KeyEvent::Act_Repeat});
}

void KeyManager::dispatchUp (KeyEvent::Key key, u16 modifiers) {
  if (_status.tstzr(key))
    return;
  reorder();
  dispatch({key, modifiers, KeyEvent::Act_Up});
}


CLOSE_JLIB_NS

